//
//  Cat.m
//  Homework_01
//
//  Created by dllo on 16/2/24.
//  Copyright © 2016年 Apon. All rights reserved.
//

#import "Cat.h"

@implementation Cat

- (void)info{
    NSLog(@"name = %@, age = %d, weight = %f, height = %f, sex = %@", _name, _age, _weight, _height, _sex);
}
- (void)setName:(NSString *)name{
    _name = name;
}

- (NSString *)name{
    return _name;
}

- (void)setAge:(int)age{
    _age = age;
}

- (NSInteger)age{
    return _age;
}

- (void)setWeight:(float)weight{
    _weight = weight;
}

- (float)weight{
    return _weight;
}

- (void)setHeigt:(float)height{
    _height = height;
}

- (float)height{
    return _height;
}

- (void)setSex:(NSString *)sex{
    _sex = sex;
}

- (NSString *)sex{
    return _sex;
}

- (instancetype)initWithName:(NSString *)name age:(int)age weight:(float)weight height:(float)height sex:(NSString *)sex{
    self = [super init];
    if (self) {
        _name = name;
        _age = age;
        _weight = weight;
        _height = height;
        _sex = sex;
    }
    return self;
}
@end
